package com.yoso.shop.infrastructure.dao.commodity;

import com.yoso.base.infrastructure.dao.BaseMapper;
import com.yoso.shop.domain.commodity.CommodityEntity;
import com.yoso.shop.domain.commodity.CommodityEntityExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommodityEntityMapper extends BaseMapper<CommodityEntity, CommodityEntityExample> {

    @Override
    long countByExample(CommodityEntityExample example);

    @Override
    int deleteByExample(CommodityEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(CommodityEntity record);

    @Override
    int insertSelective(CommodityEntity record);

    @Override
    List<CommodityEntity> selectByExample(CommodityEntityExample example);

    @Override
    CommodityEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") CommodityEntity record, @Param("example") CommodityEntityExample example);

    @Override
    int updateByExample(@Param("record") CommodityEntity record, @Param("example") CommodityEntityExample example);

    @Override
    int updateByPrimaryKeySelective(CommodityEntity record);

    @Override
    int updateByPrimaryKey(CommodityEntity record);
}